﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="Giohang.aspx.cs" Inherits="Sport_Shop.Giohang" %>


<asp:Content runat="server" ID="Muahang" ContentPlaceHolderID="MainContent">
    <style>
        .textbox input{
	        background-color:#707070;
            color:#ececec;
	        font:inherit;
	        width:260px;
            height:20px;
	        text-indent:5px;
            font-size:12px;
        }
         .buttonform
        {
	        border: 2px white solid;
	        background: black;
	        color: white;
	        height: 28px;
	        width: 50px;
	        font-weight:bold;
	        display:inline;
	        font-size:14px;
        }

        .buttonform:hover
        {
	        color: black;
	        background-color: white;
        }
    </style>
    <div style="float:left;">
        <div style="color:white; font-size:24px; font-style:italic; text-decoration:underline; text-align:center; margin-bottom:10px;">
            <asp:Label ID="lb2" runat="server" Text="Giỏ hàng của bạn" />
        </div>
    <asp:GridView ID="GVListSanpham" runat="server" AutoGenerateColumns="False" DataKeyNames="TenSP"
        CellPadding="2" 
        ForeColor="#333333" 
        GridLines="None" HorizontalAlign="Left" Width="518px" 
        OnRowDeleting="GVListSanpham_RowDeleting"
        ShowFooter="True">
        <EditRowStyle BackColor="Black" />
        <HeaderStyle BackColor="#666666" Font-Size="20px" />
        <SortedAscendingCellStyle BorderStyle="Outset" />
        <AlternatingRowStyle BackColor="Gray" />
        <FooterStyle BackColor="#F4F4F4" Height="30px" Font-Bold="True" Font-Size="15px" ForeColor="Black" HorizontalAlign="Center"/>
        <Columns>
            <asp:BoundField HeaderText="Tên sản phẩm" DataField="TenSP" ReadOnly="True">
                
                <FooterStyle Width="180px" />
                <HeaderStyle Font-Size="15px" ForeColor="Black" Height="30px" BackColor="#F4F4F4"/>
                <ItemStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Center" Height="30px"/>
            </asp:BoundField>

            <asp:BoundField HeaderText="Đơn giá" DataField="DonGia" ReadOnly="True">
                
                <HeaderStyle Font-Size="15px" ForeColor="Black" Height="30px" BackColor="#F4F4F4"/>
                <ItemStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Center"  Height="20px"/>
            </asp:BoundField>

            <asp:TemplateField HeaderText="Số lượng">
                <ItemTemplate>
                    <asp:TextBox ID="txtSoLuong" runat="server" Font-Size="14px" style="text-align:center;" Text='<%# Bind("SoLuong") %>'  Width="30px"/>
                </ItemTemplate>
                <FooterStyle BackColor="#F4F4F4" ForeColor="Black" />
                <HeaderStyle Font-Size="15px" ForeColor="Black" Height="30px" BackColor="#F4F4F4"/>
                <ItemStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Center"  Height="20px"/>
            </asp:TemplateField>

            <asp:BoundField HeaderText="Thành tiền" DataField="ThanhTien">
               
                <HeaderStyle Font-Size="15px" ForeColor="Black" Height="30px" BackColor="#F4F4F4"/>
                <ItemStyle Font-Size="14px" ForeColor="White" HorizontalAlign="Center" Height="20px"/>
           </asp:BoundField>

            <asp:CommandField ShowDeleteButton="True" ButtonType="Button">
                <ControlStyle BorderStyle="None" Height="24px" BorderWidth="0px"  CssClass="buttonform"></ControlStyle>

            <HeaderStyle BackColor="#F4F4F4" />
            <ItemStyle Font-Size="14px" BorderStyle="None" />
            </asp:CommandField>
         </Columns>
       </asp:GridView>

    </div>
    
   
    <center>
        
        <div style="float:left; margin-top:20px; width:100%;">
            <div style="color:white; font-size:24px; font-style:italic; text-decoration:underline; text-align:center; margin-bottom:10px; margin-top:10px;">
            <asp:Label ID="lb3" runat="server" Text="Thông tin đơn hàng" />
        </div>
        <p class="textbox">
            <asp:TextBox id="tbTenKH" runat="server" type ="text" placeholder="Tên khách hàng" BorderStyle="None" Height="30px" />
        </p>
        <p class="textbox">
            <asp:TextBox id="tbDiaChi" runat="server" type ="text" placeholder="Địa chỉ" BorderStyle="None" Height="30px" />
        </p>
        <p class="textbox">
            <asp:TextBox id="tbSoDT" runat="server" type ="text" placeholder="Số điện thoại" BorderStyle="None" Height="30px" />
        </p>
        <p class="textbox">
            <asp:TextBox id="tbEmail" runat="server" type ="text" placeholder="Email" BorderStyle="None" Height="30px" />
        </p>
        <p class="textbox">
            <asp:TextBox id="tbNgay" runat="server" type ="text" placeholder="Email" BorderStyle="None" Height="30px" />
        </p>

        <div style="color:white; text-align:justify; width:240px;">
            <asp:Label ID="lb1" Text="* Lưu ý: Khách hàng vui lòng điền đầy đủ và chính xác thông tin để tiện cho việc giao hàng!" runat="server" /></div>
        <div style="margin-top:20px;">
            <asp:Button ID="btUpdateGH" runat="server" Text="Cập nhật" CssClass="buttonform" BorderWidth="0px" Height="30px" Width="70px" OnClick="btUpdateGH_Click" />
            <asp:Button ID="btDelGH" runat="server" Text="Xóa giỏ hàng" CssClass="buttonform" BorderWidth="0px" Height="30px" Width="100px" OnClick="btDelGH_Click" />
            <asp:Button ID="btSubmitGH" runat="server" Text="Đặt hàng" CssClass="buttonform" BorderWidth="0px" Height="30px" Width="70px" OnClick="btSubmitGH_Click" />
        </div>
    </div></center>
         
</asp:Content>

